\hypertarget{class_wrapping_game_object}{
\section{WrappingGameObject Class Reference}
\label{class_wrapping_game_object}\index{WrappingGameObject@{WrappingGameObject}}
}


Base class for GameObjects that are wrapped around the screen.  


Inheritance diagram for WrappingGameObject:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=4.699301cm]{class_wrapping_game_object}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{class_wrapping_game_object_a82dd6405a6b6aeb2b42c289d9dabf62d}{WrappingGameObject} (\hyperlink{gameobject_8h_a57678b60d65afb213d04a6b090c64a08}{GameObjectType}, int, FPtype, \hyperlink{gameobject_8h_a390930e5106df06a541e66ea33eb85c9}{SpeedLimit}, bool, \hyperlink{gameobject_8h_a04d872bb0ec7701fa714b72007a6f562}{GameObjectMass} mass=MassTiny, \hyperlink{gameobject_8h_a08995c712f6c983b592da8f4fc89ff59}{ScoreValue} scoreValue=ScoreNone)
\begin{DoxyCompactList}\small\item\em Constructor for \hyperlink{class_wrapping_game_object}{WrappingGameObject}. \item\end{DoxyCompactList}\item 
\hypertarget{class_wrapping_game_object_a85982dd71d54305df4d59fe0875730d1}{
int \hyperlink{class_wrapping_game_object_a85982dd71d54305df4d59fe0875730d1}{wrappingFlags} ()}
\label{class_wrapping_game_object_a85982dd71d54305df4d59fe0875730d1}

\begin{DoxyCompactList}\small\item\em Getter for wrapping flags. \item\end{DoxyCompactList}\item 
\hypertarget{class_wrapping_game_object_a9b5ad17258b81f09c4ca778a203bcf55}{
FPtype \hyperlink{class_wrapping_game_object_a9b5ad17258b81f09c4ca778a203bcf55}{wrappedPosX} ()}
\label{class_wrapping_game_object_a9b5ad17258b81f09c4ca778a203bcf55}

\begin{DoxyCompactList}\small\item\em Getter for X axle wrap position. \item\end{DoxyCompactList}\item 
\hypertarget{class_wrapping_game_object_a33c43bfc71d22b2a23214f2ac2805c2c}{
FPtype \hyperlink{class_wrapping_game_object_a33c43bfc71d22b2a23214f2ac2805c2c}{wrappedPosY} ()}
\label{class_wrapping_game_object_a33c43bfc71d22b2a23214f2ac2805c2c}

\begin{DoxyCompactList}\small\item\em Getter for Y axle wrap position. \item\end{DoxyCompactList}\item 
\hypertarget{class_wrapping_game_object_ad867894768eaf013e234fd03a8c6c13c}{
void \hyperlink{class_wrapping_game_object_ad867894768eaf013e234fd03a8c6c13c}{setWrappedPosX} (FPtype x)}
\label{class_wrapping_game_object_ad867894768eaf013e234fd03a8c6c13c}

\begin{DoxyCompactList}\small\item\em Setter for X axle wrap position. \item\end{DoxyCompactList}\item 
\hypertarget{class_wrapping_game_object_a80e98a10e0de2d8468d184a771ec3357}{
void \hyperlink{class_wrapping_game_object_a80e98a10e0de2d8468d184a771ec3357}{setWrappedPosY} (FPtype y)}
\label{class_wrapping_game_object_a80e98a10e0de2d8468d184a771ec3357}

\begin{DoxyCompactList}\small\item\em Setter for Y axle wrap position. \item\end{DoxyCompactList}\item 
bool \hyperlink{class_wrapping_game_object_ae275bec0423f3a142e2c303a3530e2f4}{checkWrapping} (FPtype, FPtype)
\begin{DoxyCompactList}\small\item\em Test if there is need to draw the object again, \char`\"{}wrapped\char`\"{} to the opposite side of the screen. \item\end{DoxyCompactList}\item 
void \hyperlink{class_wrapping_game_object_acb2b8de13aae0c08d1c6242592ba3ba2}{checkWrappingRewind} (GLfloat $\ast$, FPtype, FPtype)
\begin{DoxyCompactList}\small\item\em Test if there is need to draw the object again, \char`\"{}wrapped\char`\"{} to the opposite side of the screen. \item\end{DoxyCompactList}\item 
\hypertarget{class_wrapping_game_object_aa9ee5b375e0bc197439c4760dc1aaa7f}{
bool \hyperlink{class_wrapping_game_object_aa9ee5b375e0bc197439c4760dc1aaa7f}{wrappingDisabled} ()}
\label{class_wrapping_game_object_aa9ee5b375e0bc197439c4760dc1aaa7f}

\begin{DoxyCompactList}\small\item\em Getter for wrapping disabled. \item\end{DoxyCompactList}\item 
\hypertarget{class_wrapping_game_object_a6d9c81c834079f42240fd57f64c8c872}{
void \hyperlink{class_wrapping_game_object_a6d9c81c834079f42240fd57f64c8c872}{setWrappingDisabled} (bool wrapping)}
\label{class_wrapping_game_object_a6d9c81c834079f42240fd57f64c8c872}

\begin{DoxyCompactList}\small\item\em Setter for wrapping disabled. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
int \hyperlink{class_wrapping_game_object_af2057a5a8a51e9e97e5d246fc81e993a}{storedWrappingFlags}
\begin{DoxyCompactList}\small\item\em Wrapping flags. \item\end{DoxyCompactList}\item 
\hypertarget{class_wrapping_game_object_ac7e358a5f5554077572545f89804b8c0}{
FPtype \hyperlink{class_wrapping_game_object_ac7e358a5f5554077572545f89804b8c0}{wrappedPositionX}}
\label{class_wrapping_game_object_ac7e358a5f5554077572545f89804b8c0}

\begin{DoxyCompactList}\small\item\em Wrap position of the X axle. \item\end{DoxyCompactList}\item 
\hypertarget{class_wrapping_game_object_abfd8155996cedc5334d12d0046fa5c13}{
FPtype \hyperlink{class_wrapping_game_object_abfd8155996cedc5334d12d0046fa5c13}{wrappedPositionY}}
\label{class_wrapping_game_object_abfd8155996cedc5334d12d0046fa5c13}

\begin{DoxyCompactList}\small\item\em Wrap position of the Y axle. \item\end{DoxyCompactList}\item 
\hypertarget{class_wrapping_game_object_ad9d9e5ee6844cb35b35eea43d8252773}{
bool \hyperlink{class_wrapping_game_object_ad9d9e5ee6844cb35b35eea43d8252773}{wrappingDisabledFlag}}
\label{class_wrapping_game_object_ad9d9e5ee6844cb35b35eea43d8252773}

\begin{DoxyCompactList}\small\item\em If wrapping is temporarily disabled. \item\end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Base class for GameObjects that are wrapped around the screen. 

\subsection{Constructor \& Destructor Documentation}
\hypertarget{class_wrapping_game_object_a82dd6405a6b6aeb2b42c289d9dabf62d}{
\index{WrappingGameObject@{WrappingGameObject}!WrappingGameObject@{WrappingGameObject}}
\index{WrappingGameObject@{WrappingGameObject}!WrappingGameObject@{WrappingGameObject}}
\subsubsection[{WrappingGameObject}]{\setlength{\rightskip}{0pt plus 5cm}WrappingGameObject::WrappingGameObject (
\begin{DoxyParamCaption}
\item[{{\bf GameObjectType}}]{ gameObjectType, }
\item[{int}]{ bornFrame, }
\item[{FPtype}]{ gameObjectRadius, }
\item[{{\bf SpeedLimit}}]{ gameObjectSpeedLimit, }
\item[{bool}]{ rewindEnabled, }
\item[{{\bf GameObjectMass}}]{ mass = {\ttfamily MassTiny}, }
\item[{{\bf ScoreValue}}]{ scoreValue = {\ttfamily ScoreNone}}
\end{DoxyParamCaption}
)}}
\label{class_wrapping_game_object_a82dd6405a6b6aeb2b42c289d9dabf62d}


Constructor for \hyperlink{class_wrapping_game_object}{WrappingGameObject}. 

{\itshape gameObjectType\/} Type of the game object as \hyperlink{gameobject_8h_a57678b60d65afb213d04a6b090c64a08}{GameObjectType}

{\itshape bornFrame\/} Current number. When \hyperlink{class_game_object}{GameObject} was born.

{\itshape gameObjectRadius\/} Radius of the game object as FPtype.

{\itshape gameObjectSpeedLimit\/} Maximum speed of the game object as \hyperlink{gameobject_8h_a390930e5106df06a541e66ea33eb85c9}{SpeedLimit}.

{\itshape rewindEnabled\/} Is the rewind mode enabled.

{\itshape mass\/} Mass of the game object as \hyperlink{gameobject_8h_a04d872bb0ec7701fa714b72007a6f562}{GameObjectMass}.

{\itshape scoreValue\/} Score value of the game object as \hyperlink{gameobject_8h_a08995c712f6c983b592da8f4fc89ff59}{ScoreValue}. 

\subsection{Member Function Documentation}
\hypertarget{class_wrapping_game_object_ae275bec0423f3a142e2c303a3530e2f4}{
\index{WrappingGameObject@{WrappingGameObject}!checkWrapping@{checkWrapping}}
\index{checkWrapping@{checkWrapping}!WrappingGameObject@{WrappingGameObject}}
\subsubsection[{checkWrapping}]{\setlength{\rightskip}{0pt plus 5cm}bool WrappingGameObject::checkWrapping (
\begin{DoxyParamCaption}
\item[{FPtype}]{ viewRangeX, }
\item[{FPtype}]{ viewRangeY}
\end{DoxyParamCaption}
)}}
\label{class_wrapping_game_object_ae275bec0423f3a142e2c303a3530e2f4}


Test if there is need to draw the object again, \char`\"{}wrapped\char`\"{} to the opposite side of the screen. 

This is used in the normal game mode! The wrapping results are stored into \hyperlink{class_wrapping_game_object}{WrappingGameObject} to be used when drawing object to screen. \hypertarget{class_wrapping_game_object_acb2b8de13aae0c08d1c6242592ba3ba2}{
\index{WrappingGameObject@{WrappingGameObject}!checkWrappingRewind@{checkWrappingRewind}}
\index{checkWrappingRewind@{checkWrappingRewind}!WrappingGameObject@{WrappingGameObject}}
\subsubsection[{checkWrappingRewind}]{\setlength{\rightskip}{0pt plus 5cm}void WrappingGameObject::checkWrappingRewind (
\begin{DoxyParamCaption}
\item[{GLfloat $\ast$}]{ pos, }
\item[{FPtype}]{ viewRangeX, }
\item[{FPtype}]{ viewRangeY}
\end{DoxyParamCaption}
)}}
\label{class_wrapping_game_object_acb2b8de13aae0c08d1c6242592ba3ba2}


Test if there is need to draw the object again, \char`\"{}wrapped\char`\"{} to the opposite side of the screen. 

This is used in the game rewind mode only! At rewind mode wrap checking differs from normal game mode:
\begin{DoxyItemize}
\item There is no need to check the ranges.
\item the position information is not used from \hyperlink{class_wrapping_game_object}{WrappingGameObject} but an external source instead (the stored object locations).
\item position of the \hyperlink{class_wrapping_game_object}{WrappingGameObject} is not modified, but the wrapping information is. 
\end{DoxyItemize}

\subsection{Member Data Documentation}
\hypertarget{class_wrapping_game_object_af2057a5a8a51e9e97e5d246fc81e993a}{
\index{WrappingGameObject@{WrappingGameObject}!storedWrappingFlags@{storedWrappingFlags}}
\index{storedWrappingFlags@{storedWrappingFlags}!WrappingGameObject@{WrappingGameObject}}
\subsubsection[{storedWrappingFlags}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf WrappingGameObject::storedWrappingFlags}\hspace{0.3cm}{\ttfamily  \mbox{[}private\mbox{]}}}}
\label{class_wrapping_game_object_af2057a5a8a51e9e97e5d246fc81e993a}


Wrapping flags. 

\begin{DoxySeeAlso}{See also}
\hyperlink{gameobject_8h_aa1737b45b643f9dd3c8eccea6c7d4c6f}{WRAPPING\_\-FLAG\_\-WRAP\_\-X} 

\hyperlink{gameobject_8h_a3ac56930ca86ec52f33bea5bc26bb9f4}{WRAPPING\_\-FLAG\_\-WRAP\_\-Y} 
\end{DoxySeeAlso}


The documentation for this class was generated from the following files:\begin{DoxyCompactItemize}
\item 
\hyperlink{gameobject_8h}{gameobject.h}\item 
gameobject.cpp\end{DoxyCompactItemize}
